package com.tanhua.domain.mogo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author liuyp
 * @date 2021/01/24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "recommend_quanzi")
public class RecommendQuanZi implements Serializable {

    /**主键值*/
    @Indexed
    private ObjectId id;
    /**给谁推荐的*/
    @Indexed
    private Long userId;
    /**推荐分*/
    @Indexed
    private Double score;
    private Long pid;
    /**发布的动态id*/
    private ObjectId publishId;
    /**日期*/
    private String created;
}